<div id="breadcrumbs"><?php echo $this->Html->link('Home', array('controller' => 'contents', 'action' => 'view', 'home')); ?> > <?php echo $this->Html->link('List Staff Book Entries', array('controller' => 'Staffbooks', 'action' => 'index')); ?> > <?php echo $staffbook['Staffbook']['title'] ?> 
</div>

<?php if ($this->Session->read('Auth.User.role_id') == 1 || $this->Session->read('Auth.User.role_id') == 2) { ?>
    <div class="staffbooks view">
    <?php } ?>
    <h2><?php echo __('Staff Book Entry', array('controller' => 'Staffbooks', 'action' => 'index')); ?></h2>
    <table>
        <tr>
            <th style="font-size:16px;">
                <?php echo ($staffbook['Staffbook']['title']); ?>
            </th>
            <td class ="right" style="border:none;">
                <?php echo h($staffbook['Staffbook']['timestamp']); ?>
            </td>
        </tr>
        <tr>
            <th colspan="2" style="border:none;">
                <?php echo __('Content:'); ?>
            </th>
            <td style="border:none;">

            </td>
        </tr>
        <td colspan="2">
            <?php echo ($staffbook['Staffbook']['content']); ?>
        </td>
        <tr style="border:none;">

        </tr>
    </table>

    <?php if ($this->Session->read('Auth.User.role_id') == 1 || $this->Session->read('Auth.User.role_id') == 2) { ?>
        <table>
            <tr>
                <th style="border:none; width: 50px;">
                    <?php echo __('Active'); ?>
                </th>
                <td style="border:none; float:left;">
                    <?php
                    if ($staffbook['Staffbook']['active'] == 1)
                        echo "Yes";
                    else {
                        echo "No";
                    }
                    ?>
                </td>
            </tr>
        <?php } ?>


    </table>


    <?php if ($this->Session->read('Auth.User.role_id') == 1 || $this->Session->read('Auth.User.role_id') == 2) { ?>
    </div>
    <div class="actions">
        <h3><?php echo __('Actions'); ?></h3>
        <ul>
            <li><?php echo $this->Html->link(__('Edit Entry'), array('action' => 'edit', $staffbook['Staffbook']['id'])); ?> </li>
            <li><?php echo $this->Form->postLink(__('Delete Entry'), array('action' => 'delete', $staffbook['Staffbook']['id']), null, __('Are you sure you want to delete ' . $staffbook['Staffbook']['title'] . '?')); ?> </li>
            <li><?php echo $this->Html->link(__('View Staff Book'), array('action' => 'index')); ?> </li>
        </ul>
    </div>
<?php } ?>
